<template>
<div id="root">
  <h2>当前的n值是：{{n}}</h2>
  <button @click="n++">点我n+1</button>

  <h2 v-show="true">Hello, {{name}}!</h2>

  <div v-if="n ===1">Angular</div>
  <div v-else-if="n === 2">React</div>
  <div v-else>Vue</div>
</div>
</template>

<script>
export default {
  name: "TiaoJianXuanRan",
  data() {
    return {
      name: 'jojo',
      n: 0
    }
  }
}
</script>

<style scoped>

</style>
